package constant

import (
	beego "github.com/beego/beego/v2/server/web"
)

var (
	ContractAdress    string
	ContractName      string
	Abi               string
	ProducerAddress   string
	DistributorAdress string
	ReatilerAdress    string
	ReqUrl            string
)

func init() {
	ContractName = beego.AppConfig.DefaultString("contract::contractName", "")
	// ContractAdress = beego.AppConfig.DefaultString("contract::contratAddress", "")
	Abi = beego.AppConfig.DefaultString("contract::abi", "")
	// ProducerAddress = beego.AppConfig.DefaultString("contract::producerAddress", "")
	// DistributorAdress = beego.AppConfig.DefaultString("contract::distributorAdress", "")
	// ReatilerAdress = beego.AppConfig.DefaultString("contract::reatilerAdress", "")
	ReqUrl = beego.AppConfig.DefaultString("contract::Url", "")
}
